//
//  XDSelSecureLineView.h
//  DAU-iOS
//
//  Created by XiangDongMBP on 2016/12/7.
//  Copyright © 2016年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XDSelSecureLineView;
@protocol XDSelSecureLineViewDelegate <NSObject>
@optional
// Called when a button is clicked. The view will be automatically dismissed after this call returns
- (void)xDSelSecureLineView:(XDSelSecureLineView *)selPhotoView lower:(NSInteger)lower upper:(NSInteger)upper;
@end

@interface XDSelSecureLineView : UIView
@property (nonatomic, weak) id<XDSelSecureLineViewDelegate> delegate;

// 这里是没有扩大10倍的正常值
- (instancetype)initWithLower:(NSInteger)lower upper:(NSInteger)upper delegate:(id<XDSelSecureLineViewDelegate>)delegate;
- (void)showInView:(UIView *)view;
// use this method when you need to explicitly dismiss the popup view.
// it does not need to be called if the user presses on a button
- (void)dismiss;

@end
